#include <strings_utils.h>

#include <QFileInfo>

QString getChildName(const QString &filename)
{
    QFileInfo fi(filename);
    QString new_name = fi.baseName();
    return qPrintable(new_name);
}

QString getParentName(const QString &filename)
{
    QFileInfo fi(filename);
    QString new_name = QString("%1 (%2)").arg(fi.fileName()).arg(fi.absolutePath());
    return qPrintable(new_name);
}
